package io.jee.runshan.service;

import io.jee.medusa.service.ServiceInterface;
import io.jee.medusa.vo.ResultBean;
import io.jee.runshan.domain.ShoppingCar;

public interface IShoppingCarService extends ServiceInterface<ShoppingCar> {

	/**
	 * 新增商品至购物车
	 * 
	 * @author ynshun
	 * @param wxOpenid
	 * @param productId
	 * @param count
	 * @return
	 */
	public ResultBean<?> addProduct(String wxOpenid, Integer productId, Integer count);

	/**
	 * 删除购物车中商品
	 * 
	 * @author ynshun
	 * @param wxOpenid
	 * @param productId
	 * @return
	 */
	public ResultBean<?> removeProduct(String wxOpenid, Integer productId);

	/**
	 * 增加商品数量
	 * 
	 * @author ynshun
	 * @param wxOpenid
	 * @param productId
	 * @return
	 */
	public ResultBean<?> addCount(String wxOpenid, Integer productId);

	/**
	 * 减少商品数量
	 * 
	 * @author ynshun
	 * @param wxOpenid
	 * @param productId
	 * @return
	 */
	public ResultBean<?> reduceCount(String wxOpenid, Integer productId);

	/**
	 * 更改购物车中商品的数量
	 * 
	 * @author ynshun
	 * @param wxOpenid
	 * @param productId
	 * @param count
	 * @return
	 */
	public ResultBean<?> changeCount(String wxOpenid, Integer productId, Integer count);
	
}
